< previous page page_84 next page >

Page 84
Now add the following to your MDI form code and run your application to see how this works (of course, create several child forms for the best results):
Private Sub mnuWindowCascade_Click()
    frmMDINote.Arrange vbCascade
End Sub
Private Sub mnuWindowHoriz_Click()
    frmMDINote.Arrange vbTileHorizontal
End Sub
Private Sub mnuWindowIcons_Click()
    frmMDINote.Arrange vbArrangeIcons
End Sub
Private Sub mnuWindowVert_Click()
    frmMDINote.Arrange vbTileVertical
End Sub
One of the best-kept secrets of the MDI form is its ability to keep track of all open child windows and list them in a menu option. To display a list of open child windows, simply select the WindowList check box for the Window menu item in the Menu Editor dialog box. This automatically creates a list of the child windows now in the application (see Figure 3.13).
12181-0084a.gif
Figure 3.13.
Automatically displaying all open child windows
is easy when using the menu's built-in capability.
Although you've not really added any substance to this example, the main point to the section was to understand the MDI design process. Now that you've seen what it takes to create and manipulate an MDI application, move to the next section to see how to use the Explorer style for the same application design.

 
< previous page page_84 next page >

If you like this book, buy it!